import request from '@/utils/request'

/*
 * 班级信息
 */

// 年段列表
export function sectionIndex(params) {
  return request({
    url: 'section/index',
    method: 'GET',
    params
  })
}

// 添加班级
export function classAdd(data) {
  return request({
    url: 'classes/add',
    method: 'POST',
    data: data
  })
}

// 班级列表
export function classIndex(params) {
  return request({
    url: 'classes/index',
    method: 'GET',
    params
  })
}

// 班级详情
export function classDetail(params) {
  return request({
    url: 'classes/edit',
    method: 'GET',
    params
  })
}

// 编辑班级信息
export function classEdit(data) {
  return request({
    url: 'classes/edit',
    method: 'POST',
    data: data
  })
}

// 合班列表
export function classJoinIndex(data) {
  return request({
    url: 'corner_class_merging/index',
    method: 'POST',
    data: data
  })
}

// 添加合班
export function classJoinAdd(data) {
  return request({
    url: 'corner_class_merging/add',
    method: 'POST',
    data: data
  })
}

// 删除合班
export function classJoinDelete(data) {
  return request({
    url: 'corner_class_merging/delete',
    method: 'POST',
    data: data
  })
}
